export default [
  { path: '/user', layout: false, routes: [{ path: '/user/login', component: './User/Login' }] },
  // { path: '/', redirect: '/user/login' },
  { path: '/', redirect: '/app_introduce' },
  { path: '/app_introduce', name: 'Luck 系统简介', icon: 'coffeeOutlined', component: './AppIntroduce' },
  { path: '/add_chart', name: 'AI实时分析', icon: 'fontColorsOutlined', component: './AddChart' },
  {
    path: '/add_chart_async',
    name: 'AI异步分析',
    icon: 'fontSizeOutlined',
    component: './AddChartAsync',
  },
  { path: '/my_chart', name: '历史图表', icon: 'areaChartOutlined', component: './MyChart' },
  {
    path: '/admin',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      { path: '/admin', name: '管理页面', redirect: '/admin/sub-page' },
      { path: '/admin/sub-page', name: '管理页面2', component: './Admin' },
    ],
  },
  { path: '*', name: '管理页面5', layout: false, component: './404' },
];
